/*
 *  $Id: Turnskin.cs 894 2009-11-26 20:29:46Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Neutral.Abilities {
    public class Turnskin: AbilityCard {
        public Turnskin(): base("001_n_a_turnskin") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Neutral;
            TapCreatureAfterUse = false;
        }

        public override void DoAction(TargetArgs args) {
            Affects.Turnskin affect = args.Caster.GetAffect<Affects.Turnskin>(true);
            if (affect == null) return;
            affect.NextForm();
        }

        public static Turnskin CreateNew<T>() where T: Card {
            Turnskin ability = new Turnskin();
            ability.SetPictureSource<T>();
            return ability;
        }
    }
}
